import { baseRequestClient, requestClient } from '#/api/request';

// 停供管理查询
export async function getValveManagementApi(data: any) {
  return requestClient.post(`/ChargeSystem/SFGL/getHeatingStateByStop`, data);
}
// 恢复供热
export async function getValveManagementRecoverApi(data: any) {
  return requestClient.post(
    `/ChargeSystem/SFGL/saveNormalByareaIDAndYear`,
    data,
  );
}
// 批量停供查询
export async function getValveManagementBatchApi(data: any) {
  return requestClient.post(`/ChargeSystem/SFGL/getHeatingStateByNormal`, data);
}
// 选择批量停供
export async function getValveManagementBatchSelectApi(data: any) {
  return baseRequestClient.get(
    `/ChargeSystem/SFGL/saveStopBySelect?areaAndYearData=${data}`,
  );
}
// 按条件选择停供
export async function getValveManagementBatchSelectConditionApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/SFGL/saveStopByCondition`, data);
}
// 批量导入开关栓状态
export async function getValveManagementBatchImportApi(data: any) {
  return baseRequestClient.post(`/ChargeSystem/SFGL/importHeatingState`, data);
}
// 批量导出开关栓状态
export async function getValveManagementBatchExportApi(treeData: any) {
  return baseRequestClient.get(
    `/ChargeSystem/SFGL/exportHeatingState?treeData=${treeData}`,
  );
}
// 停供管理导出历史
export async function getValveManagementBatchExportHistoryApi(
  pageNo: number,
  pageSize: number,
  levels: number,
) {
  return baseRequestClient.get(
    `/ChargeSystem/fee/findExportHistory?pageNo=${pageNo}&pageSize=${pageSize}&levels=${levels}`,
  );
}
